package com.xbs.controller.backstage;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.ConsumerEntity;
import com.xbs.service.user.ConsumerService;

/**
 * 普通用户
 * @author Administrator
 *
 */
@WebServlet("/backstage/consumer")
public class ConsumerServlet extends BaseServlet{

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
			doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		ConsumerService consumerservice = new ConsumerService();
		List<ConsumerEntity> consumerlist = consumerservice.selAll(1);
		req.setAttribute("consumer", consumerlist);
		forward("admin/basicSetting/llp_consumer");
		
	}
}
